package com.panshi.api;


import com.panshi.util.CommonResult;
import com.panshi.bean.AnswerVO;
import com.panshi.bean.PageSizeVO;
import io.swagger.annotations.Api;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "zhangkai")
@Api("回答接口")
public interface AnswerPoth {

    @PostMapping("/ansQu")
    @ResponseBody
    public List<List<AnswerVO>> findAnsQuery(@RequestBody PageSizeVO pageSizeVO);

    @GetMapping("/ansDe/{anid}")
    @ResponseBody
    public CommonResult<String> deleteAns(int answer_id);

    @GetMapping("/answer/{aaid}")
    @ResponseBody
    public CommonResult<String> updateanswerNo(@PathVariable int aaid);

}
